import datetime
import time


def f(name, sex, **kwargs):
    print 'name:', name
    print 'sex:', sex
    for k, v in kwargs.items():
        print 'key=%s, value=%s' % (k, v)


f('xiaoli', 'female')

d = {'m': 'mmm',
     'n': 'nnn'}

f('xiaoli', 'female', **d)

print '============================='


def tuple_param(a, b, c):
    print a
    print b
    print c


m = (1, 2)
tuple_param(3, *m)


today = datetime.date.today()
am_end = datetime.datetime(today.year, today.month, today.day, 11, 59, 59)
now = datetime.datetime.now()
print type((now - am_end).seconds)
